package com.example.controller;

import com.example.common.Page;
import com.example.common.PageQueryParam;
import com.example.entity.TSongEntity;
import com.example.service.TSongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/tsong")
public class TSongController {
    @Autowired
    private TSongService tSongService;

    @RequestMapping(value = "/query", method = RequestMethod.POST)
    public Page<TSongEntity> query(@RequestBody() PageQueryParam<TSongEntity> pageQueryParam){
        return tSongService.query(pageQueryParam);
    }

}
